

#import <UIKit/UIKit.h>

@protocol PxAlertPickViewControllerDelegate <NSObject>

- (void)buttonClick:(NSInteger)row;

@end

@interface PxAlertPickViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource>

@property (nonatomic, retain) NSObject<PxAlertPickViewControllerDelegate> *delegate;
@property (strong, nonatomic) NSArray *dataSource;
@property (strong, nonatomic) UIPickerView *pickerView;
@property (nonatomic, retain) UIView *mainView;
@property (nonatomic, assign) NSInteger selectedRow;

-(void)setData:(int) index;
-(instancetype)initWithDataSource:(NSArray *)array;

@end